package day02;

public class CharDemo {
    public static void main(String[] args) {
        char c1 = 25555;
        System.out.println(c1);
        //println()会根据变量的类型做输出展示
        //c1为char型，所以会以字符的形式输出
        char c2 = 'n';
        char c3 = ' ';
        char c4 = '好';
        char c5 = '5';
        //char c6 = n;//编译错误，必须在单引号里
        //char c7 = 'dfsefgs';//编译错误，只能有一个字符
        //char c8 = '';//编译错误，必须有字符
        char c9 = '\\';
        System.out.println(c9);//  \表示转义


    }
}
